Optimal. Leaf size=49 \[ 2 x-\frac {2 (a+(b+c) x) \log (a+(b+c) x)}{b+c}+\frac {(a+(b+c) x) \log ^2(a+(b+c) x)}{b+c} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {2494, 2436,
2333, 2332} \begin {gather*} \frac {(a+x (b+c)) \log ^2(a+x (b+c))}{b+c}-\frac {2 (a+x (b+c)) \log (a+x (b+c))}{b+c}+2 x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2332
Rule 2333
Rule 2436
Rule 2494
Rubi steps
\begin {align*} \int \log ^2(a+b x+c x) \, dx &=\int \log ^2(a+(b+c) x) \, dx\\ &=\frac {\text {Subst}\left (\int \log ^2(x) \, dx,x,a+(b+c) x\right )}{b+c}\\ &=\frac {(a+(b+c) x) \log ^2(a+(b+c) x)}{b+c}-\frac {2 \text {Subst}(\int \log (x) \, dx,x,a+(b+c) x)}{b+c}\\ &=2 x-\frac {2 (a+(b+c) x) \log (a+(b+c) x)}{b+c}+\frac {(a+(b+c) x) \log ^2(a+(b+c) x)}{b+c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 48, normalized size = 0.98 \begin {gather*} \frac {2 (b+c) x-2 (a+(b+c) x) \log (a+(b+c) x)+(a+(b+c) x) \log ^2(a+(b+c) x)}{b+c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 52, normalized size = 1.06
method | result | size |
derivativedivides | \(\frac {\ln \left (a +\left (b +c \right ) x \right )^{2} \left (a +\left (b +c \right ) x \right )-2 \left (a +\left (b +c \right ) x \right ) \ln \left (a +\left (b +c \right ) x \right )+2 a +2 \left (b +c \right ) x}{b +c}\) | \(52\) |
default | \(\frac {\ln \left (a +\left (b +c \right ) x \right )^{2} \left (a +\left (b +c \right ) x \right )-2 \left (a +\left (b +c \right ) x \right ) \ln \left (a +\left (b +c \right ) x \right )+2 a +2 \left (b +c \right ) x}{b +c}\) | \(52\) |
norman | \(x \ln \left (b x +c x +a \right )^{2}+\frac {a \ln \left (b x +c x +a \right )^{2}}{b +c}+2 x -2 x \ln \left (b x +c x +a \right )-\frac {2 a \ln \left (b x +c x +a \right )}{b +c}\) | \(65\) |
risch | \(\frac {\ln \left (b x +c x +a \right )^{2} \left (b x +c x +a \right )}{b +c}-2 x \ln \left (b x +c x +a \right )-\frac {2 a \ln \left (a +\left (b +c \right ) x \right )}{b +c}+\frac {2 b x}{b +c}+\frac {2 c x}{b +c}\) | \(73\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 38, normalized size = 0.78 \begin {gather*} \frac {{\left (b x + c x + a\right )} {\left (\log \left (b x + c x + a\right )^{2} - 2 \, \log \left (b x + c x + a\right ) + 2\right )}}{b + c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 48, normalized size = 0.98 \begin {gather*} \frac {{\left ({\left (b + c\right )} x + a\right )} \log \left ({\left (b + c\right )} x + a\right )^{2} + 2 \, {\left (b + c\right )} x - 2 \, {\left ({\left (b + c\right )} x + a\right )} \log \left ({\left (b + c\right )} x + a\right )}{b + c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.12, size = 63, normalized size = 1.29 \begin {gather*} - 2 x \log {\left (a + b x + c x \right )} + \left (2 b + 2 c\right ) \left (- \frac {a \log {\left (a + x \left (b + c\right ) \right )}}{\left (b + c\right )^{2}} + \frac {x}{b + c}\right ) + \frac {\left (a + b x + c x\right ) \log {\left (a + b x + c x \right )}^{2}}{b + c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.56, size = 65, normalized size = 1.33 \begin {gather*} \frac {{\left (b x + c x + a\right )} \log \left (b x + c x + a\right )^{2}}{b + c} - \frac {2 \, {\left (b x + c x + a\right )} \log \left (b x + c x + a\right )}{b + c} + \frac {2 \, {\left (b x + c x + a\right )}}{b + c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.36, size = 94, normalized size = 1.92 \begin {gather*} \frac {2\,b\,x+2\,c\,x-2\,a\,\ln \left (a+b\,x+c\,x\right )+a\,{\ln \left (a+b\,x+c\,x\right )}^2+b\,x\,{\ln \left (a+b\,x+c\,x\right )}^2+c\,x\,{\ln \left (a+b\,x+c\,x\right )}^2-2\,b\,x\,\ln \left (a+b\,x+c\,x\right )-2\,c\,x\,\ln \left (a+b\,x+c\,x\right )}{b+c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________